<div>
	<a href="<?php echo getURLdomain(); ?>" >
	<?php
		$sql = "select filename from ms_file where stsrc = 'A' and filerole = 'logo' order by dateup desc, datein desc limit 0,1";
		$exe = mysql_query($sql) or die(mysql_error());
		$num = mysql_num_rows($exe);
		$row = mysql_fetch_array($exe);
		
		if($num > 0)
		{
	?>
			<img src="<?php echo getURLdomain()."/upload/".$row['filename']; ?>" border="0" style="max-width:400px; max-height:110px;" />
	<?php
		}
	?>
	</a>
</div>